import java.util.Scanner;

/**
 * Version: 1.1
 * Author: TangJun
 * Date: 2024-07-15
 */
/*
public class Main {
*/
/*    public static void main(String[] args) {
        String s;//未初始化
        System.out.println("s=" + s);
    }*//*

*/
/*    public static int test(){
        static int i = 0;//局部变量不能用static修饰
        i++;
        return i;
    }
    public static void main(String[] args) {
        Main a = new Main();
        a.test();
        int j = a.test();
        System.out.println(j);
    }*//*

*/
/*    static boolean a;
    public static void main(String[] args) {
        System.out.println(a);
    }*//*


    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        Date x = new Date();
        x.setA(scan.nextInt());
        x.setB(scan.nextInt());
        System.out.println(x.getA() + x.getB());
    }
}
class Date{
    private int a;
    private int b;

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public int getB() {
        return b;
    }

    public void setB(int b) {
        this.b = b;
    }
}
*/
class Person{
    private int age;

    public Person(){

    }
    public Person(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        if (age <= 0){
            this.age = 0;
        }else if (age >= 200){
            this.age = 200;
        }else{
            this.age = age;
        }
    }
    public void moderateAge(int age){
    }
}
public class Main{
   public static void main1(String[] args) {
        Person a = new Person(10);
        System.out.println(a.getAge());
        a.setAge(2024);
        System.out.println(a.getAge());
    }

    public static void main(String[] args) {
        A val = new A();
        A.B val2 = val.new B();
        val2.func();
        A.B val3 = new A().new B();
        val3.func();
        System.out.println();
    }
}


class A{
    int a = 1;
    class B{
        static final int b = 2;//
        int c = 3;
        int a = 999;
        public void func(){
            System.out.println(A.this.a);
            System.out.println(b);
            System.out.println(c);
        }
    }
}